txt = "Hello, welcome to my world."

print(txt.rfind("q"))
print(txt.rindex("q"))
